<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Gets the last IMAP error that occurred during this page request</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.imap-headers.html">« imap_headers</a></li>
      <li style="float: right;"><a href="function.imap-list.html">imap_list »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.imap.html">IMAP 函数</a></li>
    <li>Gets the last IMAP error that occurred during this page request</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.imap-last-error" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">imap_last_error</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">imap_last_error</span> &mdash; <span class="dc-title">Gets the last IMAP error that occurred during this page request</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.imap-last-error-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>imap_last_error</strong></span>(): <span class="type"><span class="type">string</span>|<span class="type"><span class="type false">false</span></span></span></div>

  <p class="para rdfs-comment">
   Gets the full text of the last <abbr title="Internet Message Access Protocol">IMAP</abbr> error message
   that occurred on the current page. The error stack is untouched; calling 
   <span class="function"><strong>imap_last_error()</strong></span> subsequently, with no intervening
   errors, will return the same error. 
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.imap-last-error-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.imap-last-error-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the full text of the last IMAP error message that occurred on the
   current page. Returns <strong><code>false</code></strong> if no error messages are available.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.imap-last-error-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.imap-errors.html" class="function" rel="rdfs-seeAlso">imap_errors()</a> - Returns all of the IMAP errors that have occurred</span></li>
   </ul>
  </p>
 </div>

</div></div></div></body></html>